/*
 * @Author: xuetao 3168581151@qq.com
 * @Date: 2025-02-26
 * @LastEditors: xuetao 3168581151@qq.com
 * @LastEditTime: 2025-03-16
 * @Description: 
 */
// 错误信息
import 'package:chat_client/screens/mobile/widgets/c_popup_error.dart';
import 'package:chat_client/widgets/c_alert_message.dart';
import 'package:flutter/foundation.dart' show kIsWeb;

popError(errorText, title) {
  if (kIsWeb) {
    Message.error(errorText);
  } else {
    ErrorDialog.show(title: title, message: errorText);
  }
}

// 信息tooltip
popMessage(errorText) {
  if (kIsWeb) {
    Message.success(errorText);
  } else {
    Message.mobile(errorText);
  }
}
